import { Moment } from 'moment';

export interface IDeviceLog {
  id?: number;
  generateTime?: Moment;
  msgType?: string;
  payload?: string;
  topic?: string;
  deviceId?: number;
}

export class DeviceLog implements IDeviceLog {
  constructor(
    public id?: number,
    public generateTime?: Moment,
    public msgType?: string,
    public payload?: string,
    public topic?: string,
    public deviceId?: number
  ) {}
}
